package edu.mis.modules.blog;

import com.jfinal.core.Controller;
import com.jfinal.validate.Validator;

/**
 * BlogValidator.
 */
public class BlogValidator extends Validator {
	
	protected void validate(Controller controller) {
		validateRequiredString("title", "titleMsg", "请输入Blog标题!");
		validateRequiredString("content", "contentMsg", "请输入Blog内容!");
	}

	@Override
	protected void handleError(Controller c) {
		//TODO
	}
}
